﻿using UnityEngine;
using UnityEditor;

namespace EchoFramework.Editor
{
    [CustomEditor(typeof(PrefabBinder), true)]
    public class PrefabBinderInspector : UnityEditor.Editor
    {
        private GUIStyle btnStyle;

        void Awake()
        {
            btnStyle = new GUIStyle(EditorStyles.miniButton);
            btnStyle.fontSize = 12;
            btnStyle.normal.textColor = Color.green;
        }

        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("打开PrefabBinder编辑器", btnStyle))
            {
                PrefabBinderEditor.ShowWindow();
            }

            base.OnInspectorGUI();
        }

    }
}